<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
		window.onload=function(){ 
			//等窗口加载完成
			var b1=document.getElementById("b1");
			b1.onclick=function(){
				alert("和照耀是皖北第二帅哥");
				b1.innerHTML="点击看和照耀和城北徐公淑美";
			}
		}
		</script>
	</head>
	<body >
		<button type="button" id="b1" >点击测试</button>
	</body>
</html>
